/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package canteen.sys.model.entity;

import java.io.Serializable;
import java.sql.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

/**
 *
 * @author tntwa_000
 */
@Entity
public class OwnerItem implements Serializable {

    @Id
    @GeneratedValue
    private int ownerItemid;
    @Column(unique = true)
    private String nameOfOwner;
    @ManyToOne
    @JoinColumn(name = "ownerId")
    private Owner owner;
    private String description;
    private boolean status;
    private Date modifiedDate;

    public int getOwnerItemid() {
        return ownerItemid;
    }

    public void setOwnerItemid(int ownerItemid) {
        this.ownerItemid = ownerItemid;
    }

    public String getNameOfOwner() {
        return nameOfOwner;
    }

    public void setNameOfOwner(String nameOfOwner) {
        this.nameOfOwner = nameOfOwner;
    }

    public Owner getOwner() {
        return owner;
    }

    public void setOwner(Owner owner) {
        this.owner = owner;
    }

    public Date getModifiedDate() {
        return modifiedDate;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    
    public void setModifiedDate(Date modifiedDate) {
        this.modifiedDate = modifiedDate;
    }
}
